package com.asianrapid.dao;

import com.asianrapid.model.sys.CarEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
@Mapper
public interface CarDao {


//    public ArrayList<CarEntity> carList(@Param("id")int id, @Param("pageSize") int pageSize, @Param("start") int start);
//    public Integer carSize(@Param("id")int id,@Param("pageSize") int pageSize,@Param("start") int start);


    public ArrayList<CarEntity> carList( @Param("pageSize") int pageSize, @Param("start") int start,@Param("state") int state);
    public Integer carSize(@Param("pageSize") int pageSize,@Param("start") int start,@Param("state") int state);



    void insertCar(@Param("carEntity") CarEntity carEntity);

    void updateCar(@Param("carEntity") CarEntity carEntity);

    void deleteCar(@Param("groupId") List<String> groupId);


}

